package com.pickup.mapper;

import com.pickup.pojo.ChatGroup;
import com.pickup.pojo.UserGroup;
import com.pickup.pojo.Users;
import com.pickup.req.vo.GroupApplyVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserGroupMapper {

    Integer joinGroup(UserGroup userGroup);

    List<Users> findGroup(String groupId);

    List<ChatGroup> findAllGroup(String userId);

    List<UserGroup> findByAllGroup(String userId);

    List<GroupApplyVo> getApplyGroup(List<UserGroup>  groupList);

    UserGroup findByUserGroup(String groupId, String userId);
}
